import request from '@/utils/request'

// 查询我的奖励列表
export function listMyAward(query) {
  return request({
    url: '/gxs/myAward/list',
    method: 'get',
    params: query
  })
}

// 查询我的奖励详细
export function getMyAward(gxsPendAwardid) {
  return request({
    url: '/gxs/myAward/' + gxsPendAwardid,
    method: 'get'
  })
}

// 新增我的奖励
export function addMyAward(data) {
  return request({
    url: '/gxs/myAward',
    method: 'post',
    data: data
  })
}

// 修改我的奖励
export function updateMyAward(data) {
  return request({
    url: '/gxs/myAward',
    method: 'put',
    data: data
  })
}

// 删除我的奖励
export function delMyAward(gxsPendAwardid) {
  return request({
    url: '/gxs/myAward/' + gxsPendAwardid,
    method: 'delete'
  })
}
